@import "./generator.scss";
$editorTabsborderColor: #121315;
// body, html{
//   margin: 0;
//   padding: 0;
//   background: #fff;
//   -moz-osx-font-smoothing: grayscale;
//   -webkit-font-smoothing: antialiased;
//   text-rendering: optimizeLegibility;
//   font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
// }

input, textarea{
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
}
.ul,.li {
  list-style: none;
}

// home
.components-scrollbar {
  .el-scrollbar__wrap {
    box-sizing: border-box;
    overflow-x: hidden !important;
    margin-bottom: 0 !important;
  }
  .el-scrollbar__view{
    overflow-x: hidden;
  }
}


.reg-item{
  padding: 12px 6px;
  background: #f8f8f8;
  position: relative;
  border-radius: 4px;
  .close-btn{
    position: absolute;
    right: -6px;
    top: -6px;
    display: block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    color: #fff;
    text-align: center;
    z-index: 1;
    cursor: pointer;
    font-size: 12px;
    &:hover{
      background: rgba(210, 23, 23, 0.5)
    }
  }
  & + .reg-item{
    margin-top: 18px;
  }
}


.hu-tree-node{
  width: 100%;
  font-size: 14px;
  .node-operation{
    float: right;
  }
  i[class*="el-icon"] + i[class*="el-icon"]{
    margin-left: 6px;
  }
  .el-icon-plus{
    color: $themeColor;
  }
  .el-icon-delete{
    color: #157a0c;
  }
}

.form-dialog {
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  .el-dialog {
    margin-top:5vh !important;
    width: 650px;
   
  }
  .el-dialog__body {
    padding: 20px 50px;
    overflow-y: auto;
    box-sizing: border-box;
    height: 85vh;
  }
  >.is-fullscreen {
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
}

// 全局自定义组件添加遮罩
.form-components {
  position: relative;
  .form-readonly {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
  }
  .form-disabled {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    background-color: rgba($color: #F5F7FA, $alpha: 0.6);
    border-color: #E4E7ED;
    color: #C0C4CC;
    cursor: not-allowed;
  }
}

.mask-layer {
  position: relative;
  &:after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 20px);
    z-index: 10;
  }
}

.form-hover {
  &::after {
    content: "点击修改";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    cursor: pointer;
    color: #fff;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s;
  }
}
.form-hover:hover {
  &::after {
    opacity: 1;
  }
}

.form-signature-empty {
  background-color: #fbfdff;
  border: 1px dashed #c0ccda;
  border-radius: 6px;
  color: #8c939d;
  width: 100%;
  aspect-ratio: 8/3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 16px;
  box-sizing: border-box;
  &:hover {
    border-color: $themeColor;
  }
}

